import send_msg from '@feidao-factory/send-msg';

/**
 * 退出登录
 * @param action_id 系统参数action_id
 * @param session_id 系统参数session_id
 * @param spaceid 系统参数spaceid
 * @param systemid 项目的systemid
 * @param usercode 用户编码
 * @example user_logout(action_id, session_id, spaceid, systemid, usercode);
 */
export default function user_logout(action_id: string, session_id: string, spaceid: string, systemid: string, usercode: string) {
	const msg = {
		spaceid,
		systemid,	// todo seems no need this, even usecode
		usercode
	};
	return send_msg<void>(action_id, session_id, 'loginservice.loginout', msg);
}
